package edu.pku.sei.transformation.editor.controller.commands.link;

import edu.pku.sei.transformation.editor.model.Comment;
import edu.pku.sei.transformation.editor.model.pattern.ILinkTemplate;
import edu.pku.sei.transformation.editor.model.pattern.INodeTemplate;

public class CommentConnectionCreateCommand extends LinkTemplateCreateCommand {

	public CommentConnectionCreateCommand(ILinkTemplate connection,
			INodeTemplate source) {
		super(connection, source);
	}

	@Override
	public boolean canExecute() {
		if (!(source instanceof Comment) && !(target instanceof Comment))
			return false;
		return super.canExecute();
	}

}
